ostree: Use G_OPTION_ARG_FILENAME where appropriate
authorPhilip Withnall <withnall@endlessm.com>
Tue, 25 Apr 2017 18:14:12 +0000 (19:14 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 27 Apr 2017 13:43:49 +0000 (13:43 +0000)
commitc41860059490c9b29846fd492e938aec2f5dc976
treedf83635725570e69715c485c8e7cd47308192247
parent90b24a8d43a978da57add31b12f2b71c5179cfdc
ostree: Use G_OPTION_ARG_FILENAME where appropriate

Instead of using G_OPTION_ARG_STRING, use G_OPTION_ARG_FILENAME, which
handles filename encoding conversion differently from the locale
conversion which G_OPTION_ARG_STRING. This will fix argument handling on
systems where the filename encoding is not the same as the locale
encoding (which is fairly unlikely since most systems use UTF-8).

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #810
Approved by: cgwalters
src/ostree/ot-builtin-checkout.c
src/ostree/ot-builtin-commit.c
src/ostree/ot-builtin-export.c
src/ostree/ot-builtin-gpg-sign.c
src/ostree/ot-builtin-pull.c
src/ostree/ot-builtin-show.c
src/ostree/ot-builtin-static-delta.c
src/ostree/ot-builtin-summary.c
src/ostree/ot-main.c
src/ostree/ot-remote-builtin-refs.c
src/ostree/ot-remote-builtin-summary.c